package com.gt.common;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class PlatformConfig {

    @Value("${platform.version}")
    private String version;

    @Value("${platform.appCode}")
    private String appCode;

    @Value("${platform.password}")
    private String password;



    @Bean
    public void initStringUtils() {
        // 在这里初始化WebServiceUtil的静态字段
        WebServiceUtil.setVersion(version);
        WebServiceUtil.setAppCode(appCode);
        WebServiceUtil.setPassword(password);
    }
}